package dcslog

import (
	"log"
	"os"
	"time"
)

var (
	Logger *log.Logger
)

func init() {
	fpath := time.Now().Format("2006-01-02 15_04_05") + ".log"
	file, err := os.Create(fpath)
	if err != nil {
		panic(err)
		return
	}

	Logger = log.New(file, "", log.Llongfile)
}
